/*
 * @Descripttion:
 * @version:
 * @Author: 穆宏宇
 * @Date: 2020-11-09 14:29:03
 * @LastEditors: 穆宏宇
 * @LastEditTime: 2020-11-20 09:57:05
 */
export const columns = [
  {
    type: 'selection',
    minWidth: '50',
    label: '多选'
  },
  {
    prop: 'supplierName',
    minWidth: '250',
    label: '供应商名称'
  },
  {
    prop: 'tertiaryCategoryName',
    minWidth: '100',
    label: '商品目录'
  },
  {
    prop: 'brandName',
    minWidth: '120',
    label: '商品品牌'
  },
  {
    prop: 'typeNo',
    minWidth: '150',
    label: '规格型号'
  },
  {
    prop: 'goodsName',
    minWidth: '300',
    label: '商品名称'
  },
  {
    prop: 'sku',
    minWidth: '100',
    label: '电商编号'
  },
  {
    prop: 'goodsState',
    minWidth: '100',
    label: '商品状态',
    slotName:'goodsState'
  },
  {
    prop: 'goodsPrice',
    minWidth: '100',
    label: '含税单价'
  },
  {
    prop: 'initExcludeTaxPrice',
    minWidth: '100',
    label: '未税单价'
  },
  {
    prop: 'isAid',
    minWidth: '100',
    label: '是否扶贫',
    slotName: 'isAid'
  },
  {
    prop: 'saleUnit',
    minWidth: '100',
    label: '计量单位'
  },
  {
    prop: 'packing',
    minWidth: '250',
    label: '包装方式'
  },
  {
    prop: 'gmtCreate',
    minWidth: '180',
    label: '记录时间'
  },
  {
    prop: 'gmtModify',
    minWidth: '180',
    label: '最后修改时间'
  },{
    fixed: 'right',
    minWidth: '300',
    label: '操作',
    slotName: 'operation',
    btns: [
      {
        title: '商品下架',
        icon: 'view',
        event: 'onView',
        props: {type:"primary", plain:true}
      },
      {
        title: '上下架记录',
        icon: 'view',
        event: 'onView',
        props: {type:"primary", plain:true}
      },
      {
        title: '外商品展示',
        icon: 'discover',
        event: 'onLine',
        props: {type:"warning", plain:true}
      }
    ]
  }
]
